package com.jiutong.meipenggang.http.model.requests;

import com.jiutong.meipenggang.http.RetrofitHandle;
import com.jiutong.meipenggang.http.SubscribeHandler;
import com.jiutong.meipenggang.http.model.services.MeiLiCaiService;
import com.jiutong.meipenggang.http.model.services.MineFramentService;
import com.jiutong.meipenggang.http.model.services.UserInfoService;

import java.util.Map;

import rx.Observable;
import rx.Subscriber;

/**
 * @author Veken
 * @date on 2017/12/19 9:50
 * @describe
 */

public class MineFramentRequest extends SubscribeHandler {

    /**
     * 获取我的frament信息
     */
    public void getMineInfo(Subscriber subscriber, Map<String, Object> fields) {
        handleFields(fields);
        Observable observable = RetrofitHandle.getInstance().retrofit.create(MineFramentService.class)
                .getMineFramentInfo(fields);
        toSubscribe(observable, subscriber);
    }


}
